package brainbots;

/*Somethong that has two coordinates*/
public abstract class Located{
	private double x,y;
	public final double getX() {
		return x;
	}
	public final double getY() {
		return y;
	}
	public final void setX(double x) {
		this.x=x;
	}
	public final void  setY(double y) {
		this.y= y;
	}
    public Located(){
        x=0;y=0;
    }
    public Located(double x, double y){
        this.x=x;
        this.y=y;
    }
    public void shift(double dx, double dy){
    	x+=dx;y+=dy;
    }
}